//
// CParamCoord.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------
package org.ryzom.nel.threed;

public class CParamCoord {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CParamCoord(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CParamCoord obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CParamCoord(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setS(long value) {
    nel3dJNI.CParamCoord_S_set(swigCPtr, this, value);
  }
/*
  public long getS() {
    return nel3dJNI.CParamCoord_S_get(swigCPtr, this);
  }
*/
  public void setT(long value) {
    nel3dJNI.CParamCoord_T_set(swigCPtr, this, value);
  }
/*
  public long getT() {
    return nel3dJNI.CParamCoord_T_get(swigCPtr, this);
  }
*/
  public CParamCoord() {
    this(nel3dJNI.new_CParamCoord__SWIG_0(), true);
  }

  public CParamCoord(long s, long t) {
    this(nel3dJNI.new_CParamCoord__SWIG_1(s, t), true);
  }

  public CParamCoord(CParamCoord a, CParamCoord b) {
    this(nel3dJNI.new_CParamCoord__SWIG_2(CParamCoord.getCPtr(a), a, CParamCoord.getCPtr(b), b), true);
  }

  public float getS() {
    return nel3dJNI.CParamCoord_getS(swigCPtr, this);
  }

  public float getT() {
    return nel3dJNI.CParamCoord_getT(swigCPtr, this);
  }

  public void setST(float s, float t) {
    nel3dJNI.CParamCoord_setST(swigCPtr, this, s, t);
  }

  public boolean onBorder() {
    return nel3dJNI.CParamCoord_onBorder(swigCPtr, this);
  }

}
